//
//  HBReadSubController.h
//  HeartBeat
//
//  Created by karong on 2023/9/12.
//

#import "HBBaseController.h"
#import "HBReadView.h"
NS_ASSUME_NONNULL_BEGIN
@protocol PPReadSuDelegate <NSObject>

- (void)viewDidAppear:(UIViewController *)ctrl animated:(BOOL)animated;
- (void)tapAction:(UITapGestureRecognizer *)sender;
@end
@interface HBReadSubController : HBBaseController
@property (assign, nonatomic) id<PPReadSuDelegate>delegate;

@property (strong, nonatomic) HBChapterModel *model;
@property (strong, nonatomic) UIImageView *mainView;
@property (weak, nonatomic) IBOutlet UILabel *titleLab;
@property (weak, nonatomic) IBOutlet UILabel *selectLab;
@property (weak, nonatomic) IBOutlet HBReadView *readView;
@property (assign, nonatomic) NSInteger pageIndex;
@property (assign, nonatomic) NSInteger chapter;

- (void)setModel:(HBChapterModel *)model chapter:(NSInteger)chapter pageIndex:(NSInteger)pageIndex;
@end

NS_ASSUME_NONNULL_END
